package com.cy.java.jvm;
//-XX:+PrintGC
public class GCTests01 {
    public static void main(String[] args) {
        Point p1 = new Point();
        Point p2 = new Point();
        p1=null;
        p2=null;
        System.gc();
    }
}
class Point{
    @Override
    protected void finalize() throws Throwable {
        System.out.println("finalize()");
    }
}
